package com.centaline.androidsalesblog.api.newest;

import com.centaline.androidsalesblog.api.NewEstApi;
import com.centaline.androidsalesblog.model.responseobject.NewPropStaffListRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 新盘经纪人
 * Created by guilin on 16/2/26.
 */
public class NewPropStaffApi extends NewEstApi<NewPropStaffListRo> {

    private String estExtId;
    private int role = 1;

    public NewPropStaffApi(Class<?> tag, Class<NewPropStaffListRo> aClass, IResponseListener<NewPropStaffListRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setEstExtId(String estExtId) {
        this.estExtId = estExtId;
    }

    public void setRole(int role) {
        this.role = role;
    }

    @Override
    protected void setParams() {
        putParams("EstExtId",estExtId);
        putParams("Role",role);
    }

    @Override
    protected String getPath() {
        return "NewPropStaffRequest";
    }
}
